SUM WITH MULTIPLIER Billable Metric
Step-by-Step Setup When creating a SUM WITH MULTIPLIER-based metered feature:-
Navigate to Features
- Go to Product Catalog → Features
- Click “Add Feature”
-
Basic Information
- Name: “API Credits (USD)” (or descriptive name)
- Type: Select “Metered”
-
Event Configuration
- Event Name:
api.usage
(must match your event data) - Aggregation Function: Sum with Multiplier
- Aggregation Field:
credits
(the property to sum) - Multiplier:
0.001
(rate to apply - e.g., $0.001 per credit)
- Event Name:
-
Usage Settings
- Usage Reset: Periodic (for monthly billing) or Cumulative
- Unit Name:
USD
(currency or unit after multiplier)
- Save Feature
Calculation Example
Event Data
Configuration
- Multiplier:
0.001
(converts credits to USD at $0.001 per credit)
Calculation Process
- Event Matching: All events with
event_name = "api.usage"
- Deduplication: Remove duplicate event IDs, keeping latest value
evt_001
→800 credits
(latest value for this ID)evt_002
→2500 credits
evt_003
→1500 credits
- Sum Calculation:
800 + 2500 + 1500 = 4800 credits
- Apply Multiplier:
4800 × 0.001 = $4.80
$4.80 USD
Use Cases
Currency Conversion
Perfect for: Converting between currencies, unit price calculations1.10
(EUR to USD conversion)
Credit-Based Pricing
Perfect for: API credits, processing credits, usage tokens0.01
(converts credits to dollars)
Tiered Rate Calculations
Perfect for: Volume discounts, tier-based pricing, rate adjustments0.05
(premium tier rate: $0.05/GB)
Unit Conversions
Perfect for: Converting units, standardizing measurements0.001
(converts MB to GB)
Commission Calculations
Perfect for: Revenue sharing, affiliate commissions, partner payouts0.15
(15% commission rate)
When to Use SUM WITH MULTIPLIER
✅ Use SUM WITH MULTIPLIER when:- Need to apply consistent rate conversions
- Converting between units or currencies
- Implementing tiered or variable pricing
- Calculating commissions or percentage-based fees
- Standardizing different measurement units
Configuration Requirements
⚠️ Critical Notes:- Multiplier must be > 0 - Cannot use negative or zero values
- Multiplier is immutable - Cannot be changed after feature creation
- High precision - Stored as decimal for accurate calculations
- Applied after summing - Sum first, then multiply (not per-event)
Next Steps
- Creating a Metered Feature - Complete setup guide
- Sending Events - How to transmit SUM WITH MULTIPLIER events